-- GENERATED SPELL FOR [Xeleth] --


function spell0_21894(pUnit, Event) --@Focused Bursts,n/a--
pUnit:FullCastSpellOnTarget(36414,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21894', 12000, 1)
end

function spell1_21894(pUnit, Event) --@Tongue Lash,n/a--
pUnit:FullCastSpellOnTarget(36398,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21894', 652, 1)
end

function Sorts_21894(pUnit, Event)
local choix_sorts_21894 = math.random(0, 1)
if choix_sorts_21894 == 0 then
pUnit:RegisterEvent('spell0_21894', 1, 1)
end
if choix_sorts_21894 == 1 then
pUnit:RegisterEvent('spell1_21894', 1, 1)
end
end

function mob21894_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21894', math.random(1500, 3000), 1)
end

function mob21894_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21894_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21894_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21894, 1, 'mob21894_Action')
RegisterUnitEvent(21894, 2, 'mob21894_Leave')
RegisterUnitEvent(21894, 3, 'mob21894_Kill')
RegisterUnitEvent(21894, 4, 'mob21894_Die')
